package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.vo.SeckillGoodVO;

import java.util.List;

public interface ISeckillGoodService {

    List<SeckillGoodVO> query();

    SeckillGoodVO getSeckillGoodById(Long seckillId);

    int decrCount(Long seckillId);

    SeckillGoodVO findByCache(Long seckillId);

    List<SeckillGoodVO> queryByCache();

    /**
     * 回补真实库存
     * @param goodId
     */
    void incrCount(Long goodId);

    /**
     * 回补预库存
     * @param goodId
     */
    void syncPreStockCount(Long goodId);
}
